package com.campus.schedule.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.campus.common.mybatis.entity.IntegerIdBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商户营业时间表（支持多时段设置）
 * </p>
 *
 * @author ZhaoYuJie
 * @since 2025-05-12
 */
@Getter
@Setter
@TableName("merchant_business_hours")
@ApiModel(value = "MerchantBusinessHours对象", description = "商户营业时间表（支持多时段设置）")
public class MerchantBusinessHours extends IntegerIdBaseEntity<MerchantBusinessHours> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("关联的商户ID")
    @TableField("merchant_id")
    private Integer merchantId;

    @ApiModelProperty("每日开始营业时间(如09:00)")
    @TableField("start_time")
    private String startTime;

    @ApiModelProperty("每日结束营业时间(如21:00)")
    @TableField("end_time")
    private String endTime;

    @ApiModelProperty("每周营业日，7位字符串，1-营业，0-休息(如1111100表示周一到周五营业)")
    @TableField("weekdays")
    private String weekdays;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Override
    public Serializable pkVal() {
        return null;
    }
}
